﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="search.aspx.cs" Inherits="Hired.search"
    MasterPageFile="Hired2Div.master" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="HeadPlaceHolder">
    <style type="text/css">
        .advsearch_categories
        {
            float: right;
            margin-right: 150px;
        }
        
        .advsearch_button
        {
            float: right;
            margin-top: 15px;
            margin-right: 20px;
        }
        .salary_txtboxes
        {
            float:left;
            margin-left: 16px;
            vertical-align: middle;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="LeftPlaceHolder">
    <br />
    <asp:UpdatePanel ID="UpdatePanel" runat="server">
        <ContentTemplate>
            <h3>
                Advanced Search</h3>
            <asp:Label ID="lblAdvSearchError" runat="server" 
                Text="Please fill in at least one of the fields" ForeColor="Red" 
                Visible="False"></asp:Label>
            <div class="advsearch_categories">
                Searching for:
                <asp:RadioButtonList ID="rblCategory" runat="server" AutoPostBack="True" OnSelectedIndexChanged="rblCategory_SelectedIndexChanged">
                    <asp:ListItem>Jobs</asp:ListItem>
                    <asp:ListItem>People</asp:ListItem>
                    <asp:ListItem>Companies</asp:ListItem>
                    <asp:ListItem>Courses</asp:ListItem>
                </asp:RadioButtonList>
            </div>
            <p>
                Search keywords:<br />
                <asp:TextBox ID="txtKeyword" runat="server" Width="380px"></asp:TextBox>
            </p>
            <p>
                Search should EXCLUDE:<br />
                <asp:TextBox ID="txtExclude" runat="server" Width="380px"></asp:TextBox>
            </p>
            <p>
                &nbsp;</p>
            <asp:Panel ID="pnlJobs" runat="server" Visible="False">
                <p>
                    Location:<br />
                    <asp:DropDownList ID="ddlLocation" runat="server">
                        <asp:ListItem Value="Select a Location..."></asp:ListItem>
                        <asp:ListItem>Central</asp:ListItem>
                        <asp:ListItem>North</asp:ListItem>
                        <asp:ListItem>South</asp:ListItem>
                        <asp:ListItem>West</asp:ListItem>
                        <asp:ListItem>East</asp:ListItem>
                    </asp:DropDownList>
                </p>
                <p>
                    Job Industry:<br />
                    <asp:DropDownList ID="ddlJobIndustry" runat="server">
                        <asp:ListItem Value="Select an Industry..."></asp:ListItem>
                        <asp:ListItem>Accounting</asp:ListItem>
                        <asp:ListItem>Administration</asp:ListItem>
                        <asp:ListItem>Arts, Media &amp; Communication</asp:ListItem>
                        <asp:ListItem>Computing</asp:ListItem>
                        <asp:ListItem>Construction</asp:ListItem>
                        <asp:ListItem>Education</asp:ListItem>
                        <asp:ListItem>Engineering</asp:ListItem>
                        <asp:ListItem>Healthcare</asp:ListItem>
                        <asp:ListItem>Hotels &amp; Restaurants</asp:ListItem>
                        <asp:ListItem>Manufacturing</asp:ListItem>
                        <asp:ListItem>Sales &amp; Marketing</asp:ListItem>
                        <asp:ListItem>Sciences</asp:ListItem>
                        <asp:ListItem>Services</asp:ListItem>
                    </asp:DropDownList>
                </p>
                <p>
                    Salary Range:
                    </p>
                <div class="salary_txtboxes">
                    $<asp:TextBox ID="txtSalaryLowerLimit" runat="server" Width="57px"></asp:TextBox>
                    &nbsp;to $<asp:TextBox ID="txtSalaryUpperLimit" runat="server" Width="57px"></asp:TextBox>
                </div>
                <p>
                    <br />
                </p>
                
            </asp:Panel>
            <asp:Panel ID="pnlPeople" runat="server" Visible="False">
                <p>
                    Educational Institute:<br />
                    <asp:TextBox ID="txtSchool" runat="server" Width="380px"></asp:TextBox>
                </p>
                
            </asp:Panel>
            <asp:Panel ID="pnlCompanies" runat="server" Visible="False">
                <p>
                    E-mail Address:<br />
                    <asp:TextBox ID="txtCompanyEmail" runat="server"></asp:TextBox>
                                    </p>
            </asp:Panel>
            <asp:Panel ID="pnlCourses" runat="server" Visible="False">
                <p>
                    Relevant Industry:<br />
                    <asp:DropDownList ID="ddlCourseIndustry" runat="server">
                        <asp:ListItem Value="Select an Industry..."></asp:ListItem>
                        <asp:ListItem>Accounting</asp:ListItem>
                        <asp:ListItem>Administration</asp:ListItem>
                        <asp:ListItem>Arts, Media &amp; Communication</asp:ListItem>
                        <asp:ListItem>Computing</asp:ListItem>
                        <asp:ListItem>Construction</asp:ListItem>
                        <asp:ListItem>Education</asp:ListItem>
                        <asp:ListItem>Engineering</asp:ListItem>
                        <asp:ListItem>Healthcare</asp:ListItem>
                        <asp:ListItem>Hotels &amp; Restaurants</asp:ListItem>
                        <asp:ListItem>Manufacturing</asp:ListItem>
                        <asp:ListItem>Sales &amp; Marketing</asp:ListItem>
                        <asp:ListItem>Sciences</asp:ListItem>
                        <asp:ListItem>Services</asp:ListItem>
                    </asp:DropDownList>
                </p>
                <p>
                    Location:<br />
                    <asp:DropDownList ID="ddlCourseLocation" runat="server">
                        <asp:ListItem Value="Select a Location..."></asp:ListItem>
                        <asp:ListItem>Central</asp:ListItem>
                        <asp:ListItem>North</asp:ListItem>
                        <asp:ListItem>South</asp:ListItem>
                        <asp:ListItem>West</asp:ListItem>
                        <asp:ListItem>East</asp:ListItem>
                    </asp:DropDownList>
                </p>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
    <div class="advsearch_button">
        <asp:Button ID="btnAdvSearch" runat="server" Text="Advanced search" 
            onclick="btnAdvSearch_Click" />
    </div>
</asp:Content>
